# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=python-crayons
pkgver=0.4.0
pkgrel=4
pkgdesc='TextUI colors for Python'
arch=('any')
license=('MIT')
url='https://github.com/kennethreitz/crayons'
depends=('python-colorama')
makedepends=('python-setuptools')
source=("$pkgname-$pkgver.tar.gz::https://github.com/kennethreitz/crayons/archive/v$pkgver.tar.gz")
sha512sums=('99656373876f33d4b63e1ed8859f3c88c17af2c2b0b0c82359504b78dc8454a5366ec0297d0baea306ed7a315334d4b3ec109d368d2c92a3aeca26dc68cc05a4')

build() {
  cd crayons-$pkgver
  python setup.py build
}

package() {
  cd crayons-$pkgver
  python setup.py install --root="$pkgdir" --optimize=1
  # install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
